package com.yan.yjhTest.concurrency.thread.createThread;

/**
 * 创建线程：继承Thread类
 */
public class MyThread extends Thread{
    @Override
    public void run() {
        System.out.println("MyThread");
    }
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        MyThread myThread2 = new MyThread();
        myThread.start();
        myThread2.start();
    }
}
